
export interface ColumnType {
    title: string,
    dataIndex: string,
    key: string,
    align?: string,
    fixed?: string
}
const getConfirmIncomeColumns = () => {
    let columns: Array<ColumnType> = [
        {
            title: '客户',
            dataIndex: 'Client',
            key: 'Client',
            align: "center"
        }
    ]

    for (let month = 1; month <= 12; month++) {
        columns.push({
            title: month + '月',
            dataIndex: month.toString(),
            key: month.toString(),
            align: "center"
        })
    }
    columns.push({
        title: 'YTD07',
        dataIndex:'Ytd',
        key: 'Ytd',
        align: "center"
    })
    columns.push({
        title: 'CF08',
        dataIndex:'Cf',
        key: 'Cf',
        align: "center"
    })
    return columns
}

export const confirmIncomeMonthColumns = getConfirmIncomeColumns()

export const confirmIncomeMonthData = [
    {
        key:1,
        Client:'广汽',
        '1':0,
        '2':0,
        '3':1090,
        '4':0,
        '5':2,
        '6':0,
        '7':88,
        '8':23,
        '9':31,
        '10':865,
        '11':105,
        '12':3607,
        'Ytd':1179,
        'Cf':5810
    },
    {
        key:2,
        Client:'奇瑞',
        '1':0,
        '2':0,
        '3':0,
        '4':0,
        '5':2,
        '6':0,
        '7':79,
        '8':16,
        '9':148,
        '10':290,
        '11':758,
        '12':2836,
        'Ytd':79,
        'Cf':4127
    },
    {
        key:3,
        Client:'东风',
        '1':0,
        '2':0,
        '3':0,
        '4':0,
        '5':4,
        '6':3,
        '7':1,
        '8':3,
        '9':6,
        '10':3,
        '11':4,
        '12':165,
        'Ytd':8,
        'Cf':190
    },
    {
        key:4,
        Client:'其他',
        '1':2,
        '2':4,
        '3':85,
        '4':2,
        '5':2,
        '6':48,
        '7':2,
        '8':53,
        '9':1,
        '10':88,
        '11':354,
        '12':1325,
        'Ytd':142,
        'Cf':1607
    },
    {
        key:5,
        Client:'总计',
        '1':2,
        '2':4,
        '3':1175,
        '4':2,
        '5':8,
        '6':51,
        '7':171,
        '8':95,
        '9':186,
        '10':1246,
        '11':1220,
        '12':7932,
        'Ytd':1409,
        'Cf':11733
    },
]